package com.example.neo4j.repository;

import com.example.neo4j.node.LabelEntity;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;

import java.util.List;

public interface LabelRepository extends Neo4jRepository<LabelEntity,Long> {

    @Query("CALL db.labels() YIELD label RETURN label")
    List<String> findAllLabels();
}
